class Solution:
    def plusOne(self, digits: List[int]) -> List[int]:
        s = ""
        for x in digits:
            s += str(x)
        ans = str(int(s) + 1)
        ret = []
        for x in ans:
            ret.append(int(x))
        return ret